home *** CD-ROM | disk | FTP | other *** search
/ Fritz: All Fritz / All Fritz.zip / All Fritz / FILES / SPREEETS / TC511.LZH / TC511.DOC < prev    next >
Text File  |  1986-06-22  |  29KB  |  528 lines

  1.  
  2.                                Turbo Calc v5.11
  3.  
  4.                  Copyright (c) 1985, 1986: by P & M Software Co.
  5.  
  6.        Turbo Calc is "User Supported" software.  If you like the program,
  7.        use it, and want to see it supported and improved in the future, a
  8.        contribution of $20 would be appreciated.  Please copy and share
  9.        this program with your friends, even if you are unable to make a
  10.        contribution.
  11.  
  12.  
  13.                        Send Contributions to:
  14.  
  15.                             P & M Software Co.
  16.                             9350 Country Creek #30
  17.                             Houston, Tx 77036
  18.  
  19.  
  20.        Turbo Calc is intended to be powerfull, yet easy to use.  It
  21.        supports a medium sized spreadsheet, 512 rows by 64 columns.  And
  22.        supports many math and financial functions.  Hopefully the user
  23.        can begin using the program without reading a lot of documentation,
  24.        but some information is necessary before one can begin.  The program
  25.        requires a minimum of 256k and can use as much as 640k.
  26.  
  27.        INSTALLATION
  28.        ------------
  29.        Turbo Calc is overlayed, the .000 file that came with the program is
  30.        the overlay file.  It must be present in the default directory when
  31.        the program is started, and it may not be removed from the system
  32.        during execution of the program.  You may change directories after
  33.        starting Turbo Calc, because Turbo Calc will automatically find its
  34.        way back to the original directory for the overlays.  This is true
  35.        for the the config file, .CNF, also.  The config file holds the
  36.        information about your printer setup.
  37.  
  38.        DESCRIPTION
  39.        -----------
  40.        First, let us examine the layout of the worksheet.  On screen,
  41.        there will be displayed 7 columns by 21 rows.  The user may scroll
  42.        both vertically and horizontally.  The vertical scroll is
  43.        accomplished by depressing the PgUp or PgDn keys.  This will
  44.        scroll 20 rows up or down, a single line scroll is achieved by
  45.        moving the cursor off the top or bottom of the screen, with the up
  46.        or down arrow keys.  The horizontal scroll is achieved by depressing
  47.        the Ctrl key and the left or right arrow keys simultaneously.
  48.  
  49.        On the top and bottom lines of the screen there appears some status
  50.        information: the current cell, the amount of memory available, the
  51.        auto-calc indicator, the current marked range, the current drive
  52.        and directory, the CAPS and NUM lock indicators.  On the second
  53.        line of the screen will appear messages and the numeric or formula
  54.        content of the current cell.
  55.  
  56.        In general, the user may move the cursor to whatever cell he
  57.        desires, and enter the text, number or formula that needs to be in
  58.        that location.  If entering text, it can overwrite cells to the
  59.        right, but may not be longer than 80 characters.
  60.  
  61.        When you begin to enter something into a cell, the first keystroke
  62.        is VERY important.  It will determine the type of item stored in
  63.        the cell: formulas begin with the '(' character, numbers with 0
  64.        thru 9, '+' or '-', text with any other character.  When making the
  65.        first keystroke of a cell, some keys have different meanings, than
  66.        on succeeding keystrokes.  For example, the left and right arrow
  67.        keys will move the cursor around the worksheet, but during the
  68.        entry of data into a cell, these keys will act to move the cursor
  69.        within the cell, to edit the data.  Other keys that behave
  70.        differently, are the Home, End and Esc keys.  The Home and End keys
  71.        move the cursor to the beginning or the end of the worksheet, but
  72.        during the entry of data, they move to the beginning or end of the
  73.        current cell.  Also during data entry, the Esc key will act to
  74.        finish the entry and move to the cell below, so that a column of
  75.        numbers may be entered with the Num Lock turned on.
  76.  
  77.        If you depress the Esc key, while not entering data, a list of
  78.        commands will appear, any of the displayed commands may be
  79.        executed by pressing the indicated letter.  For experienced users,
  80.        the commands may be entered directly, without using the Esc key,
  81.        by pressing the Alt key and the command letter together.
  82.  
  83.        Following are two lists.  The first is a list the the cursor
  84.        control and editing keys.  The second is a list of the command
  85.        letters.
  86.  
  87.  
  88.                               Action                  Action
  89.        Key Name          During Data Entry           Otherwise
  90.        -------------------------------------------------------------
  91.        Up Arrow        | Finish entry and     | Move to cell above.
  92.                        | move to cell above.  |
  93.        -------------------------------------------------------------
  94.        Down Arrow      | Finish entry and     | Move to cell below.
  95.                        | move to cell below.  |
  96.        -------------------------------------------------------------
  97.        Left Arrow      | Move 1 character to  | Move to cell on the
  98.                        | the left.            | left
  99.        -------------------------------------------------------------
  100.        Right Arrow     | Move 1 character to  | Move to cell on the
  101.                        | the right.           | right.
  102.        -------------------------------------------------------------
  103.        Home            | Move to the start of | Move to cell at the
  104.                        | the cell.            | start of worksheet.
  105.        -------------------------------------------------------------
  106.        End             | Move to the end of   | Move to cell at the
  107.                        | the cell.            | end of worksheet.
  108.        -------------------------------------------------------------
  109.        Ctrl + End      | Erase contents of    | Erase current cell
  110.                        | cell from cursor to  | entirely.
  111.                        | end of cell.         |
  112.        -------------------------------------------------------------
  113.        Ctrl + L. Arrow | Finish entry and     | Scroll to the left.
  114.                        | scroll to the left.  |
  115.        -------------------------------------------------------------
  116.        Ctrl + R. Arrow | Finish entry and     | Scroll to the right.
  117.                        | scroll to the right. |
  118.        -------------------------------------------------------------
  119.        Tab             | Finish entry and     | Move to cell on the
  120.                        | move to cell right.  | right.
  121.        -------------------------------------------------------------
  122.        Shift + Tab     | Finish entry and     | Move to cell on the
  123.                        | move to cell left.   | left.
  124.        -------------------------------------------------------------
  125.        Ins             | Toggle Insert Mode.  | Toggle Insert Mode.
  126.                        | Fat cursor = Insert. | Fat cursor = Insert.
  127.        -------------------------------------------------------------
  128.        Del             | Delete character at  | Delete cursor at
  129.                        | cursor.              | cursor.
  130.        -------------------------------------------------------------
  131.        Backspace       | Delete character to  | No action.
  132.                        | left of cursor.      |
  133.        -------------------------------------------------------------
  134.        Enter           | Finish entry.  Stay  | No action.
  135.                        | in current cell.     |
  136.        -------------------------------------------------------------
  137.        Esc             | Finish entry and     | Displays the command
  138.                        | move to cell below.  | menu.
  139.                        | Nice for using NUM   |
  140.                        | Lock mode with a     |
  141.                        | column of numbers!   |
  142.        -------------------------------------------------------------
  143.  
  144.  
  145.  
  146.        Command Table: With Alt key, or preceeded by Esc.  Esc brings
  147.                       up the command list.
  148.        -------------------------------------------------------------
  149.        X         Exit to DOS.
  150.        -------------------------------------------------------------
  151.        Q         Remove command list and return to worksheet.
  152.        -------------------------------------------------------------
  153.        L         Produce a directory list.
  154.        -------------------------------------------------------------
  155.        N         Change to new directory and/or disk drive.
  156.        -------------------------------------------------------------
  157.        R         Read worksheet from disk into memory.
  158.        -------------------------------------------------------------
  159.        S         Store worksheet from memory onto disk.
  160.  
  161.                  Both the R and S commands assume the .SSF extension
  162.                  if the user doesn't specify one.  If no extension
  163.                  is desired end the filename with a '.' and no ext-
  164.                  ension will be used.
  165.        -------------------------------------------------------------
  166.        E         Erase the current worksheet from memory.
  167.        -------------------------------------------------------------
  168.        G         Perform the calculations specified by user
  169.                  formula.  Note: the worksheet is not automatically
  170.                  recalculated after one inserts/deletes a row or
  171.                  column, one should use the G command to do this.
  172.        -------------------------------------------------------------
  173.        P         Print the worksheet to disk file or printer.
  174.        -------------------------------------------------------------
  175.        F         Change cell format.  Each cell may have a
  176.                  different format.  The default is leading sign, no
  177.                  comma and no currency symbol.  You may choose 1 of
  178.                  6 different formats: financial, percent, scientific,
  179.                  hidden, date, and the default.  If the date format is
  180.                  chosen, the cell is treated as if it contained a Julian
  181.                  date and then it is converted to one of three sub-formats:
  182.                  DD-MMM-YY, DD-MMM or MMM-YY.  You will be given you choice
  183.                  of these 3 date formats, if you select the date type.
  184.                  If the financial format is chosen, you will be given the
  185.                  choice of 4 sub-formats:
  186.                     A.  $1,000- .... Dollar sign and comma insertion.
  187.                     B.   1,000- .... Comma insertion.
  188.                     C.  (1,000) .... Dollar sign and comma insertion,
  189.                                      parens for negative.
  190.                     D. $(1,000) .... Comma insertion, parens for negative.
  191.        -------------------------------------------------------------
  192.        W         The width of each column defaults to 10, but it can
  193.                  be changed with this command to any value between
  194.                  0 and 30.  After setting the width, the user is asked
  195.                  if the column should be given the "blank zero" attribute.
  196.            Note: If a column width of 0 is chosen, then this has the
  197.                  same effect as if the whole column had the "hidden"
  198.                  format.  Anything in a 0 width column or with the
  199.                  "hidden" format, will appear on the status line at
  200.                  the top of the screen, but will not appear in the
  201.                  worksheet.
  202.        -------------------------------------------------------------
  203.        B         Mark the start of the range at the current cell.
  204.        -------------------------------------------------------------
  205.        K         Mark the end of the range at the current cell.
  206.        -------------------------------------------------------------
  207.        H         The user may specify that columns are to be held
  208.                  on the left of the screen and not horizontally
  209.                  scrolled.  4 maximum.
  210.        -------------------------------------------------------------
  211.        I         Insert Row or Column.  Formula will be adjusted
  212.                  to reflect their new locations.  Absolute addresses
  213.                  may be used, by placing a '0' before the row.  For
  214.                  example 'C5' is a relative cell address and would
  215.                  be adjusted if needed, but 'C05' is an absolute
  216.                  cell address and would not be adjusted.   Recalculation
  217.                  does not automatically take place after execution
  218.                  of this command.
  219.        -------------------------------------------------------------
  220.        D         Delete Row or Column.  Formula will be adjusted
  221.                  as given above for 'I'.  If the range option is
  222.                  selected, then the rows or columns that fall within
  223.                  the specified range will be deleted.  Note: only
  224.                  rows or columns are deleted, not both at the same
  225.                  time.  Recalculation does not automatically take
  226.                  place after execution of this command.
  227.        -------------------------------------------------------------
  228.        J         Jump directly to a cell.  Avoid scrolling when you
  229.                  know where to go.
  230.        -------------------------------------------------------------
  231.        M         Move the indicated range to the current location.
  232.                  The user is given the opportunity to alter the
  233.                  range specification.  Formula are adjusted as
  234.                  above for 'I'.
  235.        -------------------------------------------------------------
  236.        C         Copy the indicated range to the current location.
  237.                  The user is given the opportunity to alter the
  238.                  range specification.  Formula are adjusted as
  239.                  above for 'I'.
  240.        -------------------------------------------------------------
  241.        O         Sort the indicated range into ascending order.  The
  242.                  sort key is the first column of the range and the
  243.                  rows within the range are arranged into ascending
  244.                  sequence based on the textual content of the key
  245.                  column (the first one in the indicated range).
  246.        -------------------------------------------------------------
  247.        A         Toggle auto-calculate.  If many formulas are in the
  248.                  worksheet, it may save time to turn auto-calculate
  249.                  off, and manually calculate with the 'G' command.
  250.        -------------------------------------------------------------
  251.        Y         Import a DIF(tm) format file.  DIF(tm) stands for
  252.                  Data Interchange Format and is commonly supported
  253.                  by many programs including 1-2-3(tm).  The DIF(tm)
  254.                  supports only the storage of the data, so the format
  255.                  control information and the formulas are not found
  256.                  in the in the DIF(tm) file.   The extension ".DIF"
  257.                  is used automatically.
  258.        -------------------------------------------------------------
  259.        Z         Export a DIF(tm) format file.  Please read the para-
  260.                  graph about for the 'Y' command.  The output file
  261.                  will contain data only, no formulas or format control
  262.                  information.  Also, the DIF(tm) format is not as
  263.                  efficient as the Turbo CALC .SSF format, so the exported
  264.                  file will probably be about 10% to 300% larger than
  265.                  the original file.
  266.        -------------------------------------------------------------
  267.        Note: DIF is a trademark of Software Arts Products Corp.
  268.              1-2-3 is a trademark of Lotus Development Corp.
  269.  
  270.  
  271. Now some discussion about selected topics:
  272.  
  273. 1. Formulas.
  274.  
  275.    Formulas are composed of operational symbols, cell addresses,
  276.    constants, and functions.  Each formula is enclosed within
  277.    parenthesis, like this: (A1+C2+F4).  This formula would take
  278.    the content of the 3 cells and add them together, depositing
  279.    the result in the cell where the formula is located.
  280.  
  281.    The following function are available:
  282.  
  283.    Name      Description                             Usage
  284.    ----      -----------                             --------
  285.    ABS       Absolute value.                         ABS(p)
  286.    SQRT      Square root.                            SQRT(p)
  287.    SQR       Square.                                 SQR(p)
  288.    MOD       The remainder of p1 divided by p2.      MOD(p1,p2)
  289.    INT       Returns the integer portion of p.       INT(p)
  290.  
  291.    PI        3.1415926536                            PI
  292.    SIN       Sine of angle in radians.               SIN(p)
  293.    ASIN      Arc sine.                               ASIN(p)
  294.    COS       Cosine of angle in radians.             COS(p)
  295.    ACOS      Arc cosine.                             ACOS(p)
  296.    TAN       Tangent of angle in radians.            TAN(p)
  297.    ATAN      Arc Tangent.                            ATAN(p)
  298.  
  299.    LN        Natural Log.                            LN(p)
  300.    LOG       Log base 10.                            LOG(p)
  301.    E         2.7182818285                            E
  302.    EXP       E raised to the p power.                EXP(p)
  303.  
  304.    NPV       Net present value of a series           NPV(i,r)
  305.                of future cash flows.
  306.    PMT       Mortgage payment per period.            PMT(pa,i,n)
  307.    PV        Present value of ordinary annuity.      PV(pp,i,n)
  308.    FV        Future value of ordinary annuity.       FV(pp,i,n)
  309.    RATE      Periodic rate needed to produce         RATE(fv,pv,n)
  310.                a future value.
  311.    TERM      The number of payment periods required  TERM(pp,i,fv)
  312.                for an annuity to grow to a future
  313.                value.
  314.    CTERM     The number of compounding periods       CTERM(i,fv,pv)
  315.                required for a present value to
  316.                future value.
  317.    IRR       Internal Rate of Return.                IRR(g,r)
  318.  
  319.    AVG       The average.                            AVG(r)
  320.    COUNT     The number of items in range.           COUNT(r)
  321.    MIN       The smallest number in range.           MIN(r)
  322.    MAX       The biggest number in range.            MAX(r)
  323.    VAR       The population variance.                VAR(r)
  324.    STD       The population standard deviation.      STD(r)
  325.  
  326.    SYD       The depreciation for the specified      SYD(cst,sal,lif,per)
  327.                period, using the "Sum Of The Years
  328.                Digits" method.
  329.    SLN       The "Straight line" depreciation for    SLN(cst,sal,lif)
  330.                1 period.
  331.    DDB       The depreciation for the specified      DDB(cst,sal,lif,per)
  332.                period, using the "Double Declining
  333.                Balance" method.
  334.  
  335.    IF        Choose between two values.              IF(t,p1,p2)
  336.                p1 is returned if t is true,
  337.                p2 is returned if t is false.
  338.    NOT       Reverse true and false values.          NOT(t)
  339.    TRUE      Returns the value for true.             TRUE
  340.    FALSE     Returns the value for false.            FALSE
  341.    ERR       Returns the value for ERR.              ERROR
  342.    ISERR     Returns the value for true if the       ISERR(p)
  343.                parameter has the ERR value,
  344.                otherwise returns the value for
  345.                false.
  346.    NA        Returns the value for NA.               NA
  347.    ISNA      Returns the value for true if the       ISNA(p)
  348.                parameter has the NA value,
  349.                otherwise returns the value for
  350.                false.
  351.  
  352.    DATE      Returns the Julian date from the        DATE(y,m,d)
  353.                calendar date given as a parameter.
  354.                The year maybe between 1800 and
  355.                2100 and the date is measured in
  356.                days from December 31, 1899.
  357.    TODAY     Returns the Julian date for today.      TODAY
  358.                Taken from the DOS clock, so if
  359.                you have set it wrong, then this
  360.                will be wrong.
  361.    DAY       Returns the day of the month,           DAY(p)
  362.                given the Julian date.
  363.    MONTH     Returns the month of the year,          MONTH(p)
  364.                given the Julian date.
  365.    YEAR      Returns the year, given the             YEAR(p)
  366.                Julian date.
  367.  
  368.    HLOOKUP   Table lookups find the largest table    HLOOKUP(trgt,tbl,ofs)
  369.                entry not greater than the target
  370.                value.  The "HLOOKUP" function
  371.                defines a horizontal table.
  372.    VLOOKUP   The "VLOOKUP" function defines a        VLOOKUP(trgt,tbl,ofs)
  373.                vertical table.
  374.  
  375.    Note: There are many examples in the sample spreadsheet that
  376.          accompanies the program.
  377.  
  378.    Note: There is no SUM function, instead use the colon, ":", as
  379.          discussed below under symbols.
  380.  
  381.    Where:  p,p1,p2 ... Constants, cell addresses or algebraic
  382.                          expressions.
  383.            i ......... Interest rate, may be any of the items
  384.                          listed for "p" above.  Note: all
  385.                          interest rates are stated in their
  386.                          fractional format, i.e. "10% = 0.1".
  387.                          Note: this is an interest rate per period
  388.                          and not per annum, however if the period
  389.                          in use is a year, then it is per annum.
  390.                          If a month is the period in use, then
  391.                          conversion from the yearly rate must
  392.                          be done by division by 12.
  393.            r ......... A range of cell addresses, i.e. "D4..H21".
  394.            pa ........ Principle amount, may be any of the items
  395.                          listed for "p" above.
  396.            n ......... Number of periods, may be any of the
  397.                          items listed for "p" above.
  398.            pp ........ Payment per period, may be any of the
  399.                          items listed for "p" above.
  400.            g ......... A guess at the interest rate, usually
  401.                          between 0.0 and 1.0.
  402.            pv ........ A present value, may be any of the items
  403.                          listed for "p" above.
  404.            fv ........ A future value, may be any of the items
  405.                          listed for "p" above.
  406.            t ......... A logical expression whose result is
  407.                          0.0 for false and non-zero for true.
  408.            y,m,d ..... May be any value listed for "p" above.
  409.                          They are the symbols for year, month and day.
  410.            trgt ...... May be any value listed for "p" above.  It is
  411.                          the value which is the target of the lookup.
  412.            tbl ....... A range of cell addresses that define the values
  413.                          to be searched to find the match for the target
  414.                          in a lookup.
  415.            ofs ....... May be any value listed for "p" above.  It is
  416.                          the value added to the matching entry's coordinates
  417.                          to find the answer in a lookup table.  Usually is
  418.                          a 1.
  419.            cst ....... The cost of an asset.
  420.            sal ....... The salvage value of an asset.
  421.            lif ....... The life expectancy of an asset.
  422.            per ....... The period for which depreciation is to be
  423.                          calculated.
  424.  
  425.    Formulas may be quite complicated, an example is:
  426.  
  427.                (A1+SIN(PI/2*(B2-C1)))
  428.  
  429.    The only limitations imposed are those of available memory and
  430.    the fact that no formula may be longer than 80 characters.
  431.    The financial and trig function are not recusive, for example
  432.    don't do this: (IRR(IRR(.2,D4..D20),E2..M2)), it won't work
  433.    very well, if at all.  If any of the formulas cannot calculate
  434.    the answer, for example if you ask for the SQRT of a negative
  435.    number, then the result will be ERROR and you will see the word
  436.    "ERR" in the result cell.
  437.  
  438.    Finally, a formula may contain the following symbols:
  439.  
  440.                 ^      Raise to the power.
  441.                 *      Multiplication
  442.                 /      Division
  443.                 +      Addition
  444.                 -      Subtraction
  445.                 :      Range summation
  446.                 |      Logical OR
  447.                 &      Logical AND
  448.                 >      Greater than test
  449.                 <      Less than test
  450.                 =      Equal test
  451.                 >=     Greater than or equal test
  452.                 <=     Less than or equal test
  453.  
  454.    These are probably familiar, with the exception of the ":" for
  455.    range summation.  Let's say that you want to sum a column of
  456.    numbers, beginning at D1 and ending at D20, then this
  457.    expression would sum the column, (D1:D20).
  458.  
  459. 2. Overwritten cells.
  460.  
  461.    Turbo Calc will allow you to make text entries of any length up
  462.    to a maximum of 80 characters, numeric entries may be up to 11
  463.    characters.  Any text entry that exceeeds the cell width will
  464.    automatically lock the adjacent cell on the right.  The lock will
  465.    be relased when the length of the entry shrinks.
  466.  
  467. 3. The Range and the commands that use it.
  468.  
  469.    The range is shown on the bottom left of the worksheet screen.
  470.    It is of the form: cell address..cell address.  If you have not
  471.    set the range, it defaults to the beginning and ending cell of
  472.    the worksheet.  There are two methods of setting the range:
  473.    1st, you can make the beginning and ending cells with the B and
  474.    K commands, 2nd, whenever one of the commands that use the
  475.    range is invoked, you have the opportunity of changing the
  476.    range by entering the new range.  For example the Copy command
  477.    will give you a menu with 3 options: Range, Copy and eXit.  If
  478.    you select the Range option, you will be allowed to enter a new
  479.    range, in the same format as displayed at the bottom of the
  480.    screen.  Here are the commands affected by the range: Copy,
  481.    Move and Print.
  482.  
  483. 4. Printer Setup.
  484.  
  485.    If you select the Print command, one of the options presented
  486.    on the Print menu is "Setup".  If you select the Setup option
  487.    you will be able to control the margins and dimensions of the
  488.    printed report.  Also, you will be given the option called
  489.    Control.  The Control option allows you to specify printer
  490.    setup control codes and printer exit control codes.  These
  491.    control codes default to Form Feed characters, but you may
  492.    specify whatever necessary.  The convention for specifying
  493.    these codes is to use the decimal numbers representing the
  494.    control codes separated by commas.  You can also put plain text
  495.    in the control strings, if you surround the text with "
  496.    marks.  For example: "This is a control string",12,12
  497.    If this was the setup control string, when the print began the
  498.    program would send the following to the printer: 'This is a
  499.    control string' FF FF.  Of course, the quotes would not be
  500.    sent, and the FF is just a symbolic way to represent the form
  501.    feed character.  With this method, you may program your printer
  502.    in whatever way you wish.
  503.  
  504.    There are 2 dot commands for the printer.  If you put .PAGE in
  505.    column A of any row, it will cause a page break to occur at
  506.    that place.  The remainder of the row with the dot command
  507.    will not print.  After you have entered .PAUSE in column A of
  508.    a row, page breaks will cause a pause for you to insert the
  509.    next page and give you an option to reprint a page or exit
  510.    the print function.
  511.  
  512. 6. Internal Rate of Return.
  513.  
  514.    This function provides an iterative approximation for the
  515.    interest rate which will produce a zero for the Net Present
  516.    Value function.  The range for this function should include
  517.    present cash flows as well as future cash flows.  The approach
  518.    to finding the zero is as follows, 14 loops thru the
  519.    "Bisection Method", followed by up to 6 loops thru the
  520.    "Modified-False Position Method".  Usually the IRR function
  521.    will converge to within 0.000001.  In some instances, where
  522.    the cash flows turn negative in a later period, there are
  523.    multiple solutions, however IRR finds the closest one only.
  524.    Your guess input to this function should be between 0.0 and 1.0.
  525.    In some cases, the function will not converge, either the
  526.    solution is too small or too large, in these cases the function
  527.    will return ERR.  Try adjusting you guess and recalculate.
  528.